package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.entity.warehouse.PushOrderDetail;
import com.sansan.qiangji.entity.warehouse.example.PushOrderDetailExample;
import com.sansan.qiangji.mapper.warehouse.PushOrderDetailMapper;
import com.sansan.qiangji.service.inter.warehouse.PushOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PushOrderDetailServiceImpl implements PushOrderDetailService {

    @Autowired
    private PushOrderDetailMapper pushOrderDetailMapper;

    @Override
    public List<PushOrderDetail> findByProductCodeOrProductName(String productCode, String productName) {
        return pushOrderDetailMapper.findByProductCodeOrProductName(productCode, productName);
    }

    @Override
    public int insertPushOrderDetails(List<PushOrderDetail> pushOrderDetails) {
        return pushOrderDetailMapper.insertPushOrderDetails(pushOrderDetails);
    }

    @Override
    public long countByExample(PushOrderDetailExample example) {
        return pushOrderDetailMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PushOrderDetailExample example) {
        return pushOrderDetailMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer pushOrderDetailId) {
        return pushOrderDetailMapper.deleteByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int insert(PushOrderDetail record) {
        return pushOrderDetailMapper.insert(record);
    }

    @Override
    public int insertSelective(PushOrderDetail record) {
        return pushOrderDetailMapper.insertSelective(record);
    }

    @Override
    public List<PushOrderDetail> selectByExample(PushOrderDetailExample example) {
        return pushOrderDetailMapper.selectByExample(example);
    }

    @Override
    public PushOrderDetail selectByPrimaryKey(Integer pushOrderDetailId) {
        return pushOrderDetailMapper.selectByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int updateByExampleSelective(PushOrderDetail record, PushOrderDetailExample example) {
        return pushOrderDetailMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(PushOrderDetail record, PushOrderDetailExample example) {
        return pushOrderDetailMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(PushOrderDetail record) {
        return pushOrderDetailMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PushOrderDetail record) {
        return pushOrderDetailMapper.updateByPrimaryKey(record);
    }
}
